package com.example.tys.oomdata.sqLiteData;

import java.util.List;

public class DaoSqlProxy<Type, BaseDaoImpl extends IBaseDao<Type>> implements IBaseDao<Type> {
    BaseDaoImpl dao;

    @Override
    public long insert(Type entry) {
        return dao.insert(entry);
    }

    @Override
    public long insert(List<Type> entry) {
        return dao.insert(entry);
    }

    @Override
    public long delete(Type entry) {
        return dao.delete(entry);
    }

    @Override
    public long update(Type oldEntry, Type entry) {
        return dao.update(oldEntry, entry);
    }

    @Override
    public List<Type> query(Type where, String orderBy, Integer offset, Integer limit) {
        
        return dao.query(where, orderBy, offset, limit);
    }
}